<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
  "http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
<!--
    Language: M4 macro processor
    Maintainer: Artem Zankovich (z_artem@yahoo.com)
    Credits: Claudio Fleiner (vim's syntax)

$Log$
Revision 1.4  2005/03/29 13:38:24  irusskih
*** empty log message ***

Revision 1.3  2005/02/22 09:06:27  irusskih
home fixes 22.02

Revision 1.2  2004/01/09 07:59:04  russkih
headers fixes, license check

Revision 1.1  2003/06/11 06:44:58  Administrator
by Artem Zankovich
by Artem Zankovich

Revision 2.0  2003/06/10 13:52:54  Artem
Colorer.take5

Revision 1.0  2002/10/08 16:07:16  Artem
Initial revision

-->
   <type name="m4">
      <import type="def"/>

      <region name="m4Var" parent="VarStrong"/>
      <region name="m4String" parent="String"/>
      <region name="m4Word" parent="Keyword"/>
      <region name="m4Const" parent="Constant"/>
      <region name="m4Symb" parent="Symbol"/>
      <region name="m4Comment" parent="Comment"/>
      <region name="m4Word2" parent="Keyword"/>


      <scheme name="m4_base">
         <regexp match="/(dnl\b.*$)/" region="m4Comment"/>
         <regexp match="/\$\d+/" region="m4Var"/>
         <regexp match="/\$[@*#]/" region="m4Var"/>
         <block start="/(\[)/" end="/(\])/" scheme="m4_base" region01="PairStart" region11="PairEnd"/>
         <block start="/(\`)/" end="/(\')/" scheme="m4_base" region00="m4Symb" region01="PairStart" region10="m4Symb" region11="PairEnd"/>
         <block start="/(\()/" end="/(\))/" scheme="m4_base" region00="m4Symb" region01="PairStart" region10="m4Symb" region11="PairEnd"/>
         <regexp match="/\b(?{m4Word}(m4_)?(define|defn|pushdef))\M\(/"/>
         <regexp match="/\b(?{m4Word}(m4_)?(include|sinclude))\M\(/"/>
         <regexp match="/\b(?{m4Word}(m4_)?(syscmd|esyscmd|ifdef|ifelse|indir|builtin|shift|errprint|m4exit|changecom|changequote|changeword|m4wrap|debugfile|divert|undivert))\M\(/"/>
         <regexp match="/\b(?{m4Word}(m4_)?(len|index|regexp|substr|translit|patsubst|format|incr|decr|eval|maketemp))\M\(/"/>
         <regexp match="/\b(?{m4Word}(m4_)?(undefine|popdef))\M\(/"/>
         <regexp match="/(?{m4Const}(m4_)?(__file__|__line__))/"/>
         <regexp match="/\b(?{m4Word2}[_A-Z][_A-Z0-9]*)\M\(/"/>
         <keywords ignorecase="yes" region="m4Word">
            <word name="divert"/>
            <word name="undivert"/>
         </keywords>
         <keywords ignorecase="yes" region="m4Const">
            <word name="divnum"/>
            <word name="sysval"/>
            <word name="m4_divnum"/>
            <word name="m4_sysval"/>
         </keywords>
      </scheme>

      <scheme name="m4_one_level">
         <block start="/(\[)/" end="/(\])/" scheme="m4_base" region01="PairStart" region11="PairEnd"/>
         <block start="/(\`)/" end="/(\')/" scheme="m4_base" region00="m4Symb" region01="PairStart" region10="m4Symb" region11="PairEnd"/>
         <block start="/(\()/" end="/(\))/" scheme="m4_base" region00="m4Symb" region01="PairStart" region10="m4Symb" region11="PairEnd"/>
         <inherit scheme="m4_base"/>
      </scheme>

      <scheme name="m4">
         <block start="/#/" end="/$/" scheme="empty" region="m4Comment"/>
         <block start="/(\()/" end="/(\))/" scheme="m4_one_level" region00="m4Symb" region01="PairStart" region10="m4Symb" region11="PairEnd"/>
         <inherit scheme="m4_base"/>
      </scheme>
   </type>
</hrc>
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is the Colorer Library.
   -
   - The Initial Developer of the Original Code is
   - Cail Lomecb <cail@nm.ru>.
   - Portions created by the Initial Developer are Copyright (C) 1999-2005
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->
